/*
 * CBaseObject_ZoidCom.h
 *
 *  Created on: 6.1.2012
 *      Author: oli
 */

#ifndef CBASEOBJECT_ZOIDCOM_H_
#define CBASEOBJECT_ZOIDCOM_H_

#include "../../../zoidcom/include/zoidcom.h"

class CZoidBaseObject
{
protected:
    ZCom_Node*          m_node;
public:
    // creates the node
    CZoidBaseObject() { m_node = new ZCom_Node(); }
    // when object get deleted, just delete the node, too
    // there is no need for unregistering or anything else
    virtual ~CZoidBaseObject() { if (m_node) delete m_node; }
};

#endif /* CBASEOBJECT_ZOIDCOM_H_ */
